package com.ziyun.erp.modules.order.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.erp.modules.order.dao.DesignInfoDao;
import com.ziyun.erp.modules.order.entity.DesignInfoEntity;
import com.ziyun.erp.modules.order.service.DesignInfoService;


@Service("designInfoService")
public class DesignInfoServiceImpl extends ServiceImpl<DesignInfoDao, DesignInfoEntity> implements DesignInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<DesignInfoEntity> page = this.selectPage(
                new Query<DesignInfoEntity>(params).getPage(),
                new EntityWrapper<DesignInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public void updateInfoByMap(Map<String, Object> params) {
        baseMapper.updateInfoByMap(params);
    }

}
